public class Test02 {
    public static void main(String[] args) {
        int[] arr={11,22,33,44,55,66,77,88,99};
         String res=ArrList(arr);
        System.out.println(res);
    }
    public static String ArrList(int[] arr){
        if (arr==null){
            return null;
        }
        StringBuilder sb=new StringBuilder();
        sb.append("[");
        for (int i = 0; i <arr.length ; i++) {
            int  data=arr[i];
            sb.append(data).append(i==arr.length-1?"":",");
        }
        sb.append("]");
        return sb.toString();
    }
}
